3.22 \(\int \frac {\csc (e+f x)}{\sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}} \, dx\)

Optimal. Leaf size=46 \[ \frac {\cos (e+f x) \log (\tan (e+f x))}{f \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}} \]

[Out]

cos(f*x+e)*ln(tan(f*x+e))/f/(a+a*sin(f*x+e))^(1/2)/(c-c*sin(f*x+e))^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.19, antiderivative size = 46, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {2946, 2620, 29} \[ \frac {\cos (e+f x) \log (\tan (e+f x))}{f \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}} \]

Antiderivative was successfully verified.

[In]

Int[Csc[e + f*x]/(Sqrt[a + a*Sin[e + f*x]]*Sqrt[c - c*Sin[e + f*x]]),x]

[Out]

(Cos[e + f*x]*Log[Tan[e + f*x]])/(f*Sqrt[a + a*Sin[e + f*x]]*Sqrt[c - c*Sin[e + f*x]])

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rule 2620

Int[csc[(e_.) + (f_.)*(x_)]^(m_.)*sec[(e_.) + (f_.)*(x_)]^(n_.), x_Symbol] :> Dist[1/f, Subst[Int[(1 + x^2)^((
m + n)/2 - 1)/x^m, x], x, Tan[e + f*x]], x] /; FreeQ[{e, f}, x] && IntegersQ[m, n, (m + n)/2]

Rule 2946

Int[1/(sin[(e_.) + (f_.)*(x_)]*Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*Sqrt[(c_) + (d_.)*sin[(e_.) + (f_.)*
(x_)]]), x_Symbol] :> Dist[Cos[e + f*x]/(Sqrt[a + b*Sin[e + f*x]]*Sqrt[c + d*Sin[e + f*x]]), Int[1/(Cos[e + f*
x]*Sin[e + f*x]), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && EqQ[c^2
- d^2, 0]

Rubi steps

\begin {align*} \int \frac {\csc (e+f x)}{\sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}} \, dx &=\frac {\cos (e+f x) \int \csc (e+f x) \sec (e+f x) \, dx}{\sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=\frac {\cos (e+f x) \operatorname {Subst}\left (\int \frac {1}{x} \, dx,x,\tan (e+f x)\right )}{f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=\frac {\cos (e+f x) \log (\tan (e+f x))}{f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.18, size = 63, normalized size = 1.37 \[ -\frac {\sec (e+f x) \sqrt {a (\sin (e+f x)+1)} \sqrt {c-c \sin (e+f x)} (\log (\cos (e+f x))-\log (\sin (e+f x)))}{a c f} \]

Antiderivative was successfully verified.

[In]

Integrate[Csc[e + f*x]/(Sqrt[a + a*Sin[e + f*x]]*Sqrt[c - c*Sin[e + f*x]]),x]

[Out]

-(((Log[Cos[e + f*x]] - Log[Sin[e + f*x]])*Sec[e + f*x]*Sqrt[a*(1 + Sin[e + f*x])]*Sqrt[c - c*Sin[e + f*x]])/(
a*c*f))

________________________________________________________________________________________

fricas [A]  time = 0.59, size = 193, normalized size = 4.20 \[ \left [\frac {\sqrt {a c} \log \left (-\frac {4 \, {\left (2 \, a c \cos \left (f x + e\right )^{5} - 2 \, a c \cos \left (f x + e\right )^{3} + a c \cos \left (f x + e\right ) - \sqrt {a c} {\left (2 \, \cos \left (f x + e\right )^{2} - 1\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}\right )}}{\cos \left (f x + e\right )^{5} - \cos \left (f x + e\right )^{3}}\right )}{2 \, a c f}, \frac {\sqrt {-a c} \arctan \left (\frac {\sqrt {-a c} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}}{2 \, a c \cos \left (f x + e\right )^{3} - a c \cos \left (f x + e\right )}\right )}{a c f}\right ] \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/sin(f*x+e)/(a+a*sin(f*x+e))^(1/2)/(c-c*sin(f*x+e))^(1/2),x, algorithm="fricas")

[Out]

[1/2*sqrt(a*c)*log(-4*(2*a*c*cos(f*x + e)^5 - 2*a*c*cos(f*x + e)^3 + a*c*cos(f*x + e) - sqrt(a*c)*(2*cos(f*x +
 e)^2 - 1)*sqrt(a*sin(f*x + e) + a)*sqrt(-c*sin(f*x + e) + c))/(cos(f*x + e)^5 - cos(f*x + e)^3))/(a*c*f), sqr
t(-a*c)*arctan(sqrt(-a*c)*sqrt(a*sin(f*x + e) + a)*sqrt(-c*sin(f*x + e) + c)/(2*a*c*cos(f*x + e)^3 - a*c*cos(f
*x + e)))/(a*c*f)]

________________________________________________________________________________________

giac [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/sin(f*x+e)/(a+a*sin(f*x+e))^(1/2)/(c-c*sin(f*x+e))^(1/2),x, algorithm="giac")

[Out]

Exception raised: TypeError >> An error occurred running a Giac command:INPUT:sage2:=int(sage0,x):;OUTPUT:Unab
le to check sign: (2*pi/x/2)>(-2*pi/x/2)Unable to check sign: (2*pi/x/2)>(-2*pi/x/2)Unable to check sign: (2*p
i/x/2)>(-2*pi/x/2)Unable to check sign: (2*pi/x/2)>(-2*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unab
le to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*p
i/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unab
le to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*p
i/t_nostep/2)>(-4*pi/t_nostep/2)Unable to check sign: (2*pi/t_nostep/2)>(-2*pi/t_nostep/2)Unable to check sign
: (2*pi/t_nostep/2)>(-2*pi/t_nostep/2)Warning, integration of abs or sign assumes constant sign by intervals (
correct if the argument is real):Check [abs(cos((f*t_nostep+exp(1))/2-pi/4))]Unable to check sign: (4*pi/t_nos
tep/2)>(-4*pi/t_nostep/2)Unable to check sign: (4*pi/t_nostep/2)>(-4*pi/t_nostep/2)Discontinuities at zeroes o
f cos((f*t_nostep+exp(1))/2-pi/4) were not checkedUnable to check sign: (4*pi/t_nostep/2)>(-4*pi/t_nostep/2)Un
able to check sign: (4*pi/t_nostep/2)>(-4*pi/t_nostep/2)Unable to check sign: (4*pi/t_nostep/2)>(-4*pi/t_noste
p/2)Unable to check sign: (4*pi/t_nostep/2)>(-4*pi/t_nostep/2)Unable to check sign: (4*pi/t_nostep/2)>(-4*pi/t
_nostep/2)Unable to check sign: (4*pi/t_nostep/2)>(-4*pi/t_nostep/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/
2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign
: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/
2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign
: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/
2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign
: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/
2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign
: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/
2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign
: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/
2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign
: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/
2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign
: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/
2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign
: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/
2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign
: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/
2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign
: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/
2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign
: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/
2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign
: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/
2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign
: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/
2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign
: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/
2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign
: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/
2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign
: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/
2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign
: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/
2)Unable to check sign: (4*pi/t_nostep/2)>(-4*pi/t_nostep/2)Unable to check sign: (2*pi/t_nostep/2)>(-2*pi/t_n
ostep/2)Unable to check sign: (2*pi/t_nostep/2)>(-2*pi/t_nostep/2)Warning, integration of abs or sign assumes
constant sign by intervals (correct if the argument is real):Check [abs(sin((f*t_nostep+exp(1))/2-pi/4))]Unabl
e to check sign: (8*pi/t_nostep/2)>(-8*pi/t_nostep/2)Discontinuities at zeroes of sin((f*t_nostep+exp(1))/2-pi
/4) were not checkedUnable to check sign: (4*pi/t_nostep/2)>(-4*pi/t_nostep/2)Unable to check sign: (4*pi/t_no
step/2)>(-4*pi/t_nostep/2)Unable to check sign: (4*pi/t_nostep/2)>(-4*pi/t_nostep/2)Unable to check sign: (4*p
i/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unable to check sign: (4*pi/x/2)>(-4*pi/x/2)Unab
le to check sign: (2*pi/x/2)>(-2*pi/x/2)Unable to check sign: (2*pi/x/2)>(-2*pi/x/2)Unable to check sign: (2*p
i/x/2)>(-2*pi/x/2)Unable to check sign: (2*pi/x/2)>(-2*pi/x/2)Warning, integration of abs or sign assumes cons
tant sign by intervals (correct if the argument is real):Check [abs(t_nostep+1),abs(t_nostep-1)]Warning, integ
ration of abs or sign assumes constant sign by intervals (correct if the argument is real):Check [abs(t_nostep
)]Sign error (%%%{a,0%%%}+%%%{-2*a,1%%%}+%%%{a,2%%%})Sign error (%%%{-2*a,1%%%}+%%%{a,2%%%})Evaluation time: 0
.48Limit: Max order reached or unable to make series expansion Error: Bad Argument Value

________________________________________________________________________________________

maple [B]  time = 0.44, size = 111, normalized size = 2.41 \[ -\frac {\left (\ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right )-\ln \left (-\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}\right )+\ln \left (-\frac {-1+\cos \left (f x +e \right )-\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right )\right ) \cos \left (f x +e \right )}{f \sqrt {a \left (1+\sin \left (f x +e \right )\right )}\, \sqrt {-c \left (\sin \left (f x +e \right )-1\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/sin(f*x+e)/(a+a*sin(f*x+e))^(1/2)/(c-c*sin(f*x+e))^(1/2),x)

[Out]

-1/f*(ln(-(-1+cos(f*x+e)+sin(f*x+e))/sin(f*x+e))-ln(-(-1+cos(f*x+e))/sin(f*x+e))+ln(-(-1+cos(f*x+e)-sin(f*x+e)
)/sin(f*x+e)))*cos(f*x+e)/(a*(1+sin(f*x+e)))^(1/2)/(-c*(sin(f*x+e)-1))^(1/2)

________________________________________________________________________________________

maxima [C]  time = 0.61, size = 190, normalized size = 4.13 \[ -\frac {\left (-1\right )^{4 \, \cos \left (2 \, f x + 2 \, e\right )} \cosh \left (4 \, \pi \sin \left (2 \, f x + 2 \, e\right )\right ) \log \left (\frac {16 \, {\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )}}{a c {\left | e^{\left (2 i \, f x + 2 i \, e\right )} - 1 \right |}^{2}}\right ) - 2 i \, \left (-1\right )^{4 \, \cos \left (2 \, f x + 2 \, e\right )} \arctan \left (\frac {4 \, \sin \left (2 \, f x + 2 \, e\right )}{\sqrt {a} \sqrt {c} {\left | e^{\left (2 i \, f x + 2 i \, e\right )} - 1 \right |}}, \frac {4 \, {\left (\cos \left (2 \, f x + 2 \, e\right ) + 1\right )}}{\sqrt {a} \sqrt {c} {\left | e^{\left (2 i \, f x + 2 i \, e\right )} - 1 \right |}}\right ) \sinh \left (4 \, \pi \sin \left (2 \, f x + 2 \, e\right )\right )}{2 \, \sqrt {a} \sqrt {c} f} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/sin(f*x+e)/(a+a*sin(f*x+e))^(1/2)/(c-c*sin(f*x+e))^(1/2),x, algorithm="maxima")

[Out]

-1/2*((-1)^(4*cos(2*f*x + 2*e))*cosh(4*pi*sin(2*f*x + 2*e))*log(16*(cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 +
2*cos(2*f*x + 2*e) + 1)/(a*c*abs(e^(2*I*f*x + 2*I*e) - 1)^2)) - 2*I*(-1)^(4*cos(2*f*x + 2*e))*arctan2(4*sin(2*
f*x + 2*e)/(sqrt(a)*sqrt(c)*abs(e^(2*I*f*x + 2*I*e) - 1)), 4*(cos(2*f*x + 2*e) + 1)/(sqrt(a)*sqrt(c)*abs(e^(2*
I*f*x + 2*I*e) - 1)))*sinh(4*pi*sin(2*f*x + 2*e)))/(sqrt(a)*sqrt(c)*f)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {1}{\sin \left (e+f\,x\right )\,\sqrt {a+a\,\sin \left (e+f\,x\right )}\,\sqrt {c-c\,\sin \left (e+f\,x\right )}} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(sin(e + f*x)*(a + a*sin(e + f*x))^(1/2)*(c - c*sin(e + f*x))^(1/2)),x)

[Out]

int(1/(sin(e + f*x)*(a + a*sin(e + f*x))^(1/2)*(c - c*sin(e + f*x))^(1/2)), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )} \sqrt {- c \left (\sin {\left (e + f x \right )} - 1\right )} \sin {\left (e + f x \right )}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/sin(f*x+e)/(a+a*sin(f*x+e))**(1/2)/(c-c*sin(f*x+e))**(1/2),x)

[Out]

Integral(1/(sqrt(a*(sin(e + f*x) + 1))*sqrt(-c*(sin(e + f*x) - 1))*sin(e + f*x)), x)

________________________________________________________________________________________